<?php
include_once(dirname(__FILE__) . "/comment-service-adapter.php");

$id = intval($_GET['id']);
$audit_state = intval($_GET['as']);

$service_adapter = new CommentServiceAdapter();
if ($service_adapter->SetAuditState($id, $audit_state) == 0) {
  printf("Audit Comment %d=%d OK<br/>", $id, $audit_state);
} else {
  echo "audit " . $id ." error<br/>";
}

?>
